﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys;

/// <summary>
/// 不合格品处理单实体.
/// </summary>
[SugarTable("qms_busi_defecthandle","不合格品处理单")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBusiDefecthandleEntity: CLDEntityBase
{
    /// <summary>
    /// 检验业务类型:IQC,IPQC.
    /// </summary>
    [SugarColumn(ColumnName = "F_Type",ColumnDescription = "检验业务类型:IQC,IPQC")]
    public string Type { get; set; }

    /// <summary>
    /// 处理单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_Code",ColumnDescription = "处理单号")]
    public string Code { get; set; }

    /// <summary>
    /// 检验批ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_InspectionLotId", ColumnDescription = "检验批ID")]
    public string InspectionLotId { get; set; }

    /// <summary>
    /// 检验批编号.
    /// </summary>
    [SugarColumn(ColumnName = "F_InspectionLot",ColumnDescription = "检验批编号")]
    public string InspectionLot { get; set; }

    /// <summary>
    /// 批次号.
    /// </summary>
    [SugarColumn(ColumnName = "F_BatchNumber",ColumnDescription = "批次号")]
    public string BatchNumber { get; set; }

    /// <summary>
    /// 物料编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode",ColumnDescription = "物料编码")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 物料描述.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialDes",ColumnDescription = "物料描述")]
    public string MaterialDes { get; set; }

    /// <summary>
    /// 供应商编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_Supplier",ColumnDescription = "供应商编码")]
    public string Supplier { get; set; }

    /// <summary>
    /// 供应商描述.
    /// </summary>
    [SugarColumn(ColumnName = "F_SupplierDes",ColumnDescription = "供应商描述")]
    public string SupplierDes { get; set; }

    /// <summary>
    /// 来料数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_IncomingQty",ColumnDescription = "来料数量")]
    public int? IncomingQty { get; set; }

    /// <summary>
    /// 生成订单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_OrderNo", ColumnDescription = "生成订单号")]
    public string OrderNo { get; set; }

    /// <summary>
    /// 生产数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_ProductionQty", ColumnDescription = "生产数量")]
    public int? ProductionQty { get; set; }
    /// <summary>
    /// 问题原因.
    /// </summary>
    [SugarColumn(ColumnName = "F_Problem",ColumnDescription = "问题原因")]
    public string Problem { get; set; }

    /// <summary>
    /// 使用决策.
    /// </summary>
    [SugarColumn(ColumnName = "F_Decision",ColumnDescription = "使用决策")]
    public string Decision { get; set; }

    /// <summary>
    /// 使用决策描述.
    /// </summary>
    [SugarColumn(ColumnName = "F_DecisionName",ColumnDescription = "使用决策描述")]
    public string DecisionName { get; set; }

    /// <summary>
    /// 备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_Remark",ColumnDescription = "备注")]
    public string Remark { get; set; }

    /// <summary>
    /// 状态.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status",ColumnDescription = "状态")]
    public int? Status { get; set; }

}